#pragma once
#include<iostream>
using namespace std;
#include<assert.h>
template<class T>
class vector
{
public:
	void vectorpush(const T& x);
	void vectorpop();
	int vectormember();
	vector()
		:_a(nullptr)
		,_size(0)
		,_capacity(0)
	{}
		~vector()
	{
		delete []_a;
		_a = nullptr;
		_size = _capacity = 0;
	}
	T& operator[](const T& i) {
		return _a[i];
	}
	

private:
	T*_a;
	size_t  _size;
	size_t  _capacity;

};
